﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 人类_学生_教师类创建
{
    internal class Student : Person
    {
        public int ExamScore {  get; set; }

        public Student(string name, int examScore):base(name) 
        {
            ExamScore = examScore;
        }

        public void TakeExam()
        {
            Console.WriteLine($"{Name}正在参加考试，成绩为: {ExamScore}");
        }
    }
}
